import React, { Component } from 'react';
import autoBind from 'react-autobind';
import { Link, browserHistory } from 'dva/router';

// style
import styles from './index.css';
import IconfontStyle from '../../../assets/iconfont/iconfont.css';

class BuyCarBodyEmpty extends Component {
	constructor(props) {
        super(props)
        autoBind(this)
    }
    
    onNavHome() {
    	const { dispatch } = this.props

    	dispatch({
    		type: 'meyley/changeHomeTabType',
    		payload: 'home'
    	})
    }
	render() {
	 	return (
	 		<div className={styles['buy-car-body-empty']}>
                <div className={styles['buy-car-body-empty-img']}>
                	<img style={{width: '1.80rem', marginRight: '0.2rem'}} src={require('../../../assets/shoppingcart.png')} />
                </div>
                <div className={styles['buy-car-body-empty-des']}>
                	<div>
                		购物车还没有商品哦
                	</div>
                	<div onClick={this.onNavHome} className={styles['buy-car-body-empty-des']} style={{color: 'rgb(106, 104, 104)'}}>
                		赶紧去逛逛吧 > 
                	</div>
                </div>
	 		</div>
	  	);
	}
};

BuyCarBodyEmpty.propTypes = {
};

export default BuyCarBodyEmpty
